package com.chengqj.staticd.proxy;

/**
 * @program: proxy
 * @description: 静态代理角色
 * @author: chengqj
 * @create: 2018-07-27 09:24
 **/
public class MeiPoProxy {
    private Person person;

    public MeiPoProxy(Person person) {
        this.person = person;
    }

    public void findLove() {
        System.out.println("物色人员");
        person.findLove();
        System.out.println("媒婆后续跟踪");
    }

    public static void main(String[] args) {
        Person person = new ChengqjPerson();
        new MeiPoProxy(person).findLove();
    }
}
